Yet another Real Life Problem

Akash is one of the finest programmers of AUST. His closest senior Shuvro asked him if he can solve a real life problem. The problem is based on our daily life usage of contact searching in any smartphone. Shuvro described the problem as follows:


This is a companion discussion topic for the original entry at https://toph.co/p/yet-another-real-life-problem