Growisto Interview Question

guesstimate the simple problem