RBC interview question

OA 3 questions, 1 Leetcode easy and two medium problems