Park+ (India) interview question

Interview kicked off with a basic frog jump problem where the frog is allowed k jumps