Paperplanes interview question

Python basic algorithm questions from leetcode