Absolute Permutation Hackerrank Solution For Python Code For Snake