Picking Number Hackerrank Solution