PayPerks coding exercise