Code Conversion and Analysis

Output: