This is another array problem. It's an easy problem but I believe it's important for the build-up to harder problems. Try to solve it here -
Leetcode: https://leetcode.com/problems/find-pi...
and show your solutions!!. I really want to see how you solved it!