Nespresso Interview Question

A complicated problem I faced before and how I resolved it?