Filed interview question

How would you tackle the given problem?