Please modify thecode of the previous exerciseso that instead of printing out thelines in the terminal, it prints out the length of each line.

Expected output:

4
5
6
8
10
11