A monkey wants to climb a pole of height H meters. The monkey can jump U meters up each time but slides down D meters immediately after each jump (except when it reaches or exceeds the top). Write a function to calculate the minimum number of jumps the monkey needs to reach or exceed the top of the pole.
Input:
H → total height of the pole
U → distance monkey jumps upward
D → distance monkey slides down
Output:
Minimum number of jumps required for the monkey to reach the top

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which keyword is used for inheritance?