Samsung Electronics interview question

Android: Technical Problem and its solution(more technical side)