Solve shipping capacity and expression insertion | Meta Interview Question