Chef’s son wants to go on a roller coaster ride. The height of Chef’s son is X inches while the minimum height required to go on the ride is H inches. Determine whether he can go on the ride or not.
Here we are given the minimum height to go on the ride is H inches. Thus we just need to check if Chef’s son has a height greater than or equal to H inches.
Thus if X is greater than or equal to H then he can go on a ride else he can’t.
O(1) for each test case.