[ADD] Added solution of task1 from finals (version without brackets)