Python Push Pop Array Javascript Length Validation Therapy