Revising The Select Query Hackerrank Solution