GEICO interview question

Coding challenge like leetcode that you find on leetcode