Better handling for race condition | Hello Interview