Solve common array/string/linked-list tasks | Meta Interview Question