Logistic Infotech interview question

Given one patter to check for loop logic