Apple and Orange, another sweet juicy problem available on HackerRank. Let's solve it in python.

let's me know if there is any better way to solve it

Problem

This problem description contains some graphical Explanation.So for better understanding visit

https://www.hackerrank.com/challenges/apple-and-orange/problem

Thanks.