Qualcomm Interview Question

Verification of the same logic using different methods (at least 5)