F5 interview question

just data structure and slorithm