Kecilin interview question

1. i actually forgot :D but it's just a array-like and string algorithm