Oracle interview question

1. Bubble sort 2. DP question