Rippling interview question

Very basic leetcode questions and puzzles