Two Pointer Algorithm Python Template Literals In Keyboard