NETGEAR interview question

introduction ask some coding question (leet code style)