Gap Up and Gap Down

Problem Name:
Gap Up and Gap Down
Site:HackerRank
Links:
Tags:
Problem setters: