In the app code there should be one or two very obvious bugs and easy optimizations to make, and then put more subtle and challenging to fix issues there as well. And ideally make it something where a really sharp and experienced developer would identify some high-level architectural flaw and they would know how to rearchitect it.
Everyone knows that the leetcode-style questions are contrived and don't usually reflect real world work but we continue to do it anyways.