Bubble sort program

The given bubble sort is an optimized way of bubble sort... it checks
for if the  given array is already sorted... if sorted iteration
stops... and the sorting technique without that boolean variable is
normal sorting
Finding Rabbit and turtle in an bubble sort

Here i have done some code for finding rabbit and turtle variable...