Arm Interview Question

Describe what this C++ calculates Describe what this Assembly code does