updated currency-permut.c