Aha! interview question

How to solve this technical problem?

Interview Answer

Anonymous

16 Apr 2020

1 brute force method, one with more repetition but also elegant