DP World Interview Question

1 first was to sort a stack and second was aggresive cows