Domanda di colloquio di Bosnet Distribution

How to optimize the code without using hard coded line?