QuantumBlack Interview Question

HackerRank: LeetCode (Easy-Medium level questions)