Ericsson Interview Question

Factorial program using recursion. First max and second max using array. Sort an array list.