I was asked to write a solution to a simple string operation problem on the whiteboard. I had forgotten some of the string API, which may have hampered my ability to solve the problem without some assistance (which was provided). The difficult part was that, after the solution had been written, I was asked to optimize it as much as I could.