Frage im Vorstellungsgespräch bei Capgemini Engineering

In coding they have asked about 1. Inverted pyramid 2 . Looping