Nutrabolt interview question

They asked me a Star method question