GlobalLogic Interview Question

Program for count letters in given string, factorial, rearrange array(easy), twisted knapsack.