Absolute Permutation Hackerrank Solution For Sql