https://medium.com/puzzle-sphere/chicken-dinner-pubg-bgmi-interview-puzzle-recursive-coding-optimization-google-amazon-microsoft-dp-python-0e2743fbc8e4