Bitwise Interview Question

Tell me about Be Project write a code to ind second highest number using only one loop write a code for Pyramid pattern Encapsulation String buffer Builder