Autocoder

Visa interview questions with answers (software engineer, India)

Last updated 2026-11-19

Visa builds payment-network technology, and its India engineering roles are based largely in Bengaluru. Candidates commonly describe interviews that combine data structures and coding with object-oriented design, concurrency, security and some knowledge of how payments move, followed by behavioural conversations.

The thirteen questions below are practice in that style, with worked answers. They are not past questions. For the online assessment, see Visa coding round questions.

Typical rolesSoftware Engineer, Associate Software Engineer (India)
Rounds, as commonly reportedOnline assessment, technical interviews, hiring manager round
Heavy topicsDSA, OOP and design, concurrency, SQL, security, payments basics
Hiring newsSee Hiring status below

Rounds as commonly reported

Candidates commonly report an online assessment with coding problems, followed by several technical interviews and a conversation with a hiring manager. The number of technical rounds and the emphasis (coding versus design) vary with the role's level.

Technical rounds often include a coding problem, an object-oriented design problem such as a parking lot or a payment service, and questions about concurrency and security. Knowing how a card payment flows between parties helps you answer design questions with the right failure cases.

What to prepare

Hiring status

There is no Visa hiring-news page on this site, and this page quotes no hiring numbers, dates or packages because none are sourced here. Check Visa's own careers site for current India roles, eligibility and dates, and apply only there.

Visa interview questions with answers (software engineer, India): questions with worked answers

  1. 1

    Design the classes for a parking lot with multiple levels and vehicle sizes.

    medium

    Identify the entities: ParkingLot, Level, Spot (with a size such as small, medium or large), Vehicle (Motorcycle, Car, Truck) and Ticket. A vehicle can park in a spot of equal or larger size; Level.findSpot returns the first free fitting spot. Park creates a Ticket with the entry time and marks the spot occupied; exit computes the fee from the duration and frees the spot. Keep pricing as a Strategy so rates can change, and make spot allocation thread-safe with a lock or an atomic state change. The interviewer wants the model and the reasoning, not full code.

  2. 2

    Describe the four-party model of a card payment: cardholder, merchant, acquirer and issuer.

    medium

    The cardholder pays a merchant with a card issued by the issuer, the bank that extends credit or holds the account. The merchant's bank, the acquirer, processes the merchant's card payments. A card network connects the two: it routes the authorisation request from the acquirer to the issuer and returns the decision, then supports clearing and settlement, where funds move between banks. Fees are split along the chain, with interchange paid to the issuer. Knowing this flow helps you reason about where timeouts, duplicates and fraud checks happen.

  3. 3

    How can you avoid deadlock in Java, and when would you use ReentrantLock instead of synchronized?

    medium

    Avoid it by acquiring multiple locks in a global order, holding locks for as short a time as possible, and using tryLock with a timeout so a thread can back off. ReentrantLock adds capabilities that synchronized lacks: timed and interruptible lock attempts, fairness, and multiple Condition objects. It must be released in a finally block. synchronized is simpler and safe against forgetting to unlock, so prefer it unless you need those features. Use jstack to find deadlocked threads.

  4. 4

    SQL: return the Nth highest distinct salary.

    medium

    Rank distinct salaries with DENSE_RANK and select the one with rank N, wrapped so that it returns NULL when fewer than N distinct salaries exist. LIMIT with OFFSET N-1 over SELECT DISTINCT is the alternative for MySQL and PostgreSQL. Do not use ROW_NUMBER, which counts duplicates as separate ranks.

    sql
    SELECT MAX(salary) AS nth_salary
    FROM (
      SELECT salary, DENSE_RANK() OVER (ORDER BY salary DESC) AS rnk
      FROM Employee
    ) t
    WHERE rnk = :n;
  5. 5

    What is the difference between Comparable and Comparator in Java? Sort transactions by amount descending, then id ascending.

    easy

    Comparable defines the natural ordering inside the class through compareTo; Comparator is an external ordering passed to sort, so you can have many. Use a Comparator when you cannot modify the class or need several orderings. Chain comparisons with thenComparing. Avoid subtracting integers in a comparator, since overflow gives a wrong sign; use Integer.compare or Long.compare.

    java
    import java.util.*;
    record Txn(int id, long amount) {}
    class Demo {
        static void sort(List<Txn> t) {
            t.sort(Comparator.comparingLong(Txn::amount).reversed().thenComparingInt(Txn::id));
        }
    }
  6. 6

    How does a trie work, and how would you use one for merchant-name autocomplete?

    medium

    A trie stores strings character by character along a tree, so all words with a common prefix share a path. Insert and prefix lookup cost O(L) for a word of length L, regardless of how many words are stored. For autocomplete, walk to the node for the typed prefix and then collect words in its subtree, optionally ranked by popularity counts stored at the nodes. Memory use is the drawback; compressed tries or sorted arrays with binary search are alternatives.

    python
    class Trie:
        def __init__(self):
            self.kids, self.end = {}, False
        def insert(self, w):
            n = self
            for ch in w:
                n = n.kids.setdefault(ch, Trie())
            n.end = True
        def starts_with(self, p):
            n = self
            for ch in p:
                if ch not in n.kids:
                    return []
                n = n.kids[ch]
            out = []
            def dfs(node, path):
                if node.end: out.append(p + path)
                for c, k in node.kids.items(): dfs(k, path + c)
            dfs(n, "")
            return out
  7. 7

    Design a URL shortener. What are the key decisions?

    hard

    Generate a short unique key for each long URL: either a counter encoded in base 62 (7 characters give about 3.5 trillion keys) or a hash with collision handling. Store key to URL in a database with an index on the key; reads dominate writes, so put a cache in front. Redirect with HTTP 301 or 302 (302 if you need click analytics). Counters need coordination across servers, which you can solve with ranges handed to each server. Address abuse with rate limits and expiry. State your assumptions on traffic before choosing numbers.

  8. 8

    What is the difference between hashing and encryption, and between symmetric and asymmetric encryption?

    medium

    Hashing is one-way: the same input gives the same digest and the input cannot be recovered; it is used for integrity checks and password storage (with a salt and a slow hash such as bcrypt or Argon2). Encryption is reversible with a key. Symmetric encryption such as AES uses one shared key and is fast; asymmetric encryption such as RSA uses a public and private key pair, solves key distribution and is used for signatures and for exchanging a symmetric key. TLS combines both.

  9. 9

    What is tokenisation in payments, and why is it used?

    medium

    Tokenisation replaces a card number with a surrogate token that has no exploitable value outside a specific context, such as one merchant or one device. The real number is held in a secure vault. If a merchant database is breached, the attackers get tokens that cannot be used elsewhere, which reduces the scope of compliance requirements. It differs from encryption because there is no mathematical way to reverse a token without the vault. Mobile wallets use device-specific tokens for this reason.

  10. 10

    Compare round-robin and priority scheduling. What is starvation and how is it fixed?

    medium

    Round-robin gives each process a fixed time quantum in turn, which is fair and gives good response time but costs context switches; a quantum that is too large behaves like first-come-first-served and one that is too small wastes time switching. Priority scheduling always runs the highest-priority ready process, which can starve low-priority processes indefinitely. Aging fixes it by gradually raising a waiting process's priority. Multilevel feedback queues combine both ideas.

  11. 11

    Tell me about yourself.

    easy

    Give a 60 to 90 second structure: who you are now (course and year), one or two technical highlights that fit the role (a project and what you built), what you are looking for, and why this role. Keep it chronological only where it helps. Do not recite the resume. End with a sentence that invites the next question, for instance the project you would like to explain.

  12. 12

    Why Visa, and what do you know about the work technology teams do?

    easy

    Talk about payments at scale: low-latency authorisation, reliability, security and fraud prevention. Use what you have read from the company's own site rather than assumptions, and relate it to your own interests such as distributed systems or data. Be honest about what you do not yet know and what you would like to learn. Short and specific is better than long and generic.

  13. 13

    How would you handle a disagreement with your manager about how to implement a feature?

    medium

    Listen to the reasoning first, since the manager may know constraints you do not. Present your concerns with evidence, such as a prototype, a benchmark or an example of a failure, and ask what would change their mind. If the decision stands, commit and execute, and note the risks for a later review. Give a real example. Interviewers look for respect, evidence and the ability to disagree and commit.

Frequently asked questions

Does Visa ask system design for freshers?

Candidates commonly report object-oriented design for early-career roles, with fuller system design reserved for more experienced candidates. Prepare a few classic designs such as a parking lot and a URL shortener.

Do I need to know how payments work?

You are not expected to be an expert, but knowing the four-party model of cardholder, merchant, acquirer and issuer helps with design questions.

Which language should I use?

Use the language you are most fluent in. Java, Python and C++ are all common choices in such interviews.

Where do I find current openings?

Use Visa's own careers site. This page quotes no hiring numbers because none are sourced here.

Related guides

More in Company Interview Questions

See all in this section