Loading Counting Magical Permutations (BDOI 2016: Bangladesh)