PayPal interview question

1. Finding peak element in array 2. Merging two arrays in sorted order