GCD .... with a twist !!

Problem Name:
GCD .... with a twist !!
Site:HackerEarth
Links:
Tags:
Problem setters: