Base on primitive type and array([]), using limited methods, create the data structures and algorithms.