Cubic Interview Question

array sorting without using predefined method's.